package com.eazyrpc.bigdata.sql;

import com.eazyrpc.thrift.base.SQLService;
import org.apache.thrift.TException;

public class SQLServiceImpl implements SQLService.Iface {
    static int count = 0;
    @Override
    public String select(String sql) throws TException {
        count++;
        System.out.println("input sql :"+sql);
        return "the select sql is $sql ,---> from java RPC Server. query times = ".replace("$sql",sql) + count;
    }
}
